-
Notifications
You must be signed in to change notification settings - Fork 0
ERD 기반 Entity 구성 (question, question-solution, answer-evalutaion, answer-submission, category, audio-asset) #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Question, QuestionSolution 엔티티 정의 - AnswerSubmission, AnswerEvaluation 엔티티 정의 - as const를 활용한 공통 상수(Enum 대체) 정의
- question, question-solution, answer-evalutaion, answer-submission 해당 - FK가 있는 쪽에서만 단방향 관계 설정
- answer-submission & audio-assets one to one - question & category one to one
kimjihyo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋습니다! attemptId만 submissionId로 변경하는 것만 결정하면 될 것 같아요 ~!
| id: number; | ||
|
|
||
| @Column({ name: 'attempt_id', type: 'int' }) | ||
| attemptId: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 attemp -> submission으로 테이블 이름이 바뀌었으니까 이것도 submissionId로 할까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오! 좋습니다
swgivenchy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!
scoreDetails에서 타입이 확정되는 것은 accuracyEval, logicEval, depthEval 세 가지 등급에 대한 할당 점수가 들어가게 되는 것으로 이해하면 될까요?!
현재 프롬프트로 생각하면 |
🔸 작업 내용
🔸 고민 했던 부분
enum vs as const
타입스크립트 핸드북 enums
토스 디스커션
티스토리 참고 글
jsonb 사용
jsonb는 JSON 데이터를 파싱된 이진 구조로 저장합니다. 그래서 예를 들면 상세 채점 결과의 특정 항목(정확도)을 기준으로 조건 검색이 가능합니다.
postgresql 공식문서
FK 관계 설정
🔸 참고
미포함 내용